/**
 * 
 */
package org.kernely.web.context;

import org.kernely.web.ContextServiceInterface;
import org.osgi.framework.Bundle;
import org.osgi.service.http.HttpContext;

/**
 * 
 * The Context context service
 * @author g.breton
 *
 */
public class KernelyContextService implements ContextServiceInterface {

	//the current context
	private  KernelyHttpContext context;
	
	/**
	 * The context services
	 * @param pBundle
	 */
	public KernelyContextService(Bundle pBundle){
		 context = new KernelyHttpContext(pBundle);
	}
	/**
	 * Return the current http context
	 * @return the current http contect
	 */
	public final HttpContext getContext(){
		return context;
	}
}
